package com.wxq.product.dao;

import com.wxq.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxq.product.vo.SpuAttrGroupVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 属性分组
 * 
 * @author jim
 * @email 2982877319@qq.com
 * @date 2022-03-13 19:57:58
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
    /**
     * 获取商品以及关联所有属性
     * @param catalogId
     * @param spuId
     * @return
     */
    List<SpuAttrGroupVO> selectAttrGroupWithAttrsBySpuId(Long catalogId, Long spuId);
}
